package cn.qingyun.gis.modules.scenes.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;


@Data
@ApiModel(value = "poi列表查询请求对象", description = "poi列表查询请求对象")
public class QueryByWordRequest {

    @NotEmpty(message = "场景类型列表不能为空")
    @ApiModelProperty(value = "场景类型列表")
    private List<String> type;

    @ApiModelProperty(value = "网格编码")
    private String gridId;

    @ApiModelProperty(value = "勘误工号")
    private String kwPhone;

    @ApiModelProperty(value = "渠道编码")
    private String channelCode;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "实时经度")
    private BigDecimal lon;

    @ApiModelProperty(value = "实时经度")
    private BigDecimal lat;

    @Min(value = 0, message = "随访状态只能为0或1")
    @Max(value = 1, message = "随访状态只能为0或1")
    @ApiModelProperty(value = "0(未勘误)，1(已勘误)")
    private Integer kwState;

    @Min(value = 0, message = "随访状态只能为0或1")
    @Max(value = 1, message = "随访状态只能为0或1")
    @ApiModelProperty(value = "0(未勘误)，1(已勘误)")
    private Integer kwMixState;

    @NotNull(message = "角色类型不能为空")
    @ApiModelProperty(value = "角色类型")
    private Integer roleType;
    @NotEmpty(message = "角色传递参数不能为空")
    @ApiModelProperty(value = "角色传递参数不能为空")
    private String codeStr;
    @ApiModelProperty(value = "距离限制")
    private Double distance;

    @ApiModelProperty(value = "是否是建筑")
    private Integer isBuild;

    @ApiModelProperty(value = "用户工号")
    private String telNum;

    @ApiModelProperty(value = "是否是金牌建筑")
    private Integer isGoldBuild;
}
